<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="it" uri="/pager-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>-搜索引擎</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"/>
	<meta name="Keywords" content="keyword1,keyword2,keyword3"/>
	<meta name="Description" content="网页信息的描述" />
	<meta name="Author" content="itcast.cn" />
	<meta name="Copyright" content="All Rights Reserved." />
		<link rel="stylesheet" type="text/css" href="css/pager.css"/>
	<style type="text/css">
		body{
			background-color: white;
		}
		ul{
			list-style: none;
			line-height: 20px;
			width: 580px;
		}
	</style>
</head>
<body>
	<form action="${pageContext.request.contextPath}/search.action" method="get">
		<table align="center">
			<tr>
				<td><input type="text" name="keyword" value="${keyword }" size="50"/>
					<input type="submit" value="百度一下"/>
				</td>
			</tr>
		</table>
	</form>
	
	<s:iterator value="notices">
		<ul>
			<li>
			<a href="${pageContext.request.contextPath}/showUpdateNotice.action?notice.id=${id}">
			<s:property value="title" escapeHtml="false"/>
			</a>
			</li>
			<li><s:property value="content" escapeHtml="false"/></li>
		</ul>
	</s:iterator>
	
	<!-- 分页标签 -->
	<it:pager pageIndex="${pageModel.pageIndex}" 
				  pageSize="${pageModel.pageSize }" 
				  recordCount="${pageModel.recordCount }" 
				  submitUrl="${pageContext.request.contextPath}/search.action?pageModel.pageIndex={0}&keyword=${keyword}"/>
	
</body>
</html>